* @model: the model to sort
* @filter_func: (allow-none): filter function or %NULL to not filter items
* @user_data: user data passed to @filter_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
*
* Creates a new #GtkFilterListModel that will filter @model using the given
* @filter_func.
* @self: a #GtkFilterListModel
* @filter_func: (allow-none): filter function or %NULL to not filter items
* @user_data: user data passed to @filter_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
*
* Sets the function used to filter items. The function will be called for every
* item and if it returns %TRUE the item is considered visible.
GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkFilterListModel, gtk_filter_list_model, GTK, FILTER_LIST_MODEL, GObject)
-typedef gboolean (* GtkFilterListModelFilterFunc) (gpointer item, gpointer data);
+typedef gboolean (* GtkFilterListModelFilterFunc) (gpointer item, gpointer user_data);
GDK_AVAILABLE_IN_ALL
GtkFilterListModel * gtk_filter_list_model_new (GListModel *model,
* @model: (allow-none): The model to map or %NULL for none
* @map_func: (allow-none): map function or %NULL to not map items
* @user_data: user data passed to @map_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
*
* Creates a new #GtkMapListModel for the given arguments.
*
gtk_map_list_model_new (GType item_type,
GListModel *model,
GtkMapListModelMapFunc map_func,
- gpointer data,
- GDestroyNotify data_destroy)
+ gpointer user_data,
+ GDestroyNotify user_destroy)
{
GtkMapListModel *result;
NULL);
if (map_func)
- gtk_map_list_model_set_map_func (result, map_func, data, data_destroy);
+ gtk_map_list_model_set_map_func (result, map_func, user_data, user_destroy);
return result;
}
* @self: a #GtkMapListModel
* @map_func: (allow-none): map function or %NULL to not map items
* @user_data: user data passed to @map_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
*
* Sets the function used to map items. The function will be called whenever
* an item needs to be mapped and must return the item to use for the given
/**
* GtkMapListModelMapFunc:
* @item: (transfer full): The item to map
- * @data: user data
+ * @user_data: user data
*
* User function that is called to map an @item of the original model.
*
* Returns: (transfer full): The item to map to. This function may not return %NULL
*/
-typedef gpointer (* GtkMapListModelMapFunc) (gpointer item, gpointer data);
+typedef gpointer (* GtkMapListModelMapFunc) (gpointer item, gpointer user_data);
GDK_AVAILABLE_IN_ALL
GtkMapListModel * gtk_map_list_model_new (GType item_type,
}
/**
- * gtk_slice_list_model_set_offset:
+ * gtk_slice_list_model_set_size:
* @self: a #GtkSliceListModel
* @size: the maximum size
*
* @self: a #GtkSortListModel
* @sort_func: (allow-none): sort function or %NULL to not sort items
* @user_data: user data passed to @sort_func
- * @destroy: destroy notifier for @user_data
+ * @user_destroy: destroy notifier for @user_data
*
* Sets the function used to sort items. The function will be called for every
* item and must return an integer less than, equal to, or greater than zero if
/**
* GtkTreeListModelCreateModelFunc:
* @item: The item that is expaned
- * @data: User data passed when registering the function
+ * @user_data: User data passed when registering the function
*
* Prototype of the function called to create new child models when
* gtk_tree_list_row_set_expanded() is called.
*/
-typedef GListModel * (* GtkTreeListModelCreateModelFunc) (gpointer item, gpointer data);
+typedef GListModel * (* GtkTreeListModelCreateModelFunc) (gpointer item, gpointer user_data);
GDK_AVAILABLE_IN_ALL
GtkTreeListModel * gtk_tree_list_model_new (gboolean passthrough,
GListModel *root,
gboolean autoexpand,
GtkTreeListModelCreateModelFunc create_func,
- gpointer data,
- GDestroyNotify data_destroy);
+ gpointer user_data,
+ GDestroyNotify user_destroy);
GDK_AVAILABLE_IN_ALL
GListModel * gtk_tree_list_model_get_model (GtkTreeListModel *self);
GtkTreeListRow * gtk_tree_list_row_get_parent (GtkTreeListRow *self);
GDK_AVAILABLE_IN_ALL
GtkTreeListRow * gtk_tree_list_row_get_child (GtkTreeListRow *self,
- guint child);
+ guint position);
G_END_DECLS